<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>{:session('cp.cpsysname')}--系统管理平台</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <meta name="description" content="{:config('webconfig.description');}">
    <meta name="keywords" content="{:config('webconfig.keywords');}">
    <meta name="author" content="runoob">
    <link rel="stylesheet" href="__STATIC_URL__/static/css/bootstrap.css">
    <link rel="stylesheet" type="text/css" href="__STATIC_URL__/static/css/index.css"/>
    <script src="__STATIC_URL__/static/js/jquery-2.1.4.min.js"></script>
    <script src="__STATIC_URL__/static/bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <script src="__STATIC_URL__/static/js/commen.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>

{include file='public/header'/}
<!------------------导航-------------------------->
<section>
    {include file='public/left'/}
    <!--------------------------主要内容区域------------------------------------->
    <div class="content">
        <div class="page-heading  mgr15 mgl15">
            <ul class="breadcrumb">
                <li>
                    当前位置是&nbsp;:&nbsp;系统管理
                </li>
                <li class="active" style="color: #02b87f;"> 授权管理</li>
            </ul>
        </div>
        <div class="panel panel-default mgr15 mgl15" style="position: relative;">
            <div class="panel-heading">
                <h5 class="panel-title">微信公众号授权</h5>
            </div>
            <div class="panel-body">
            {if condition="checkPath('mach/open_auth')"}
            <table class="table table-bordered">
                <tbody>
                <tr>
                    <td class="active">授权情况</td>
                    <td>{if condition="$user['auth_type'] eq 0"}继承上级公众号{else /}自有公众号{/if}：<font color="green"> {$wxopen['gh_nick_name']}</font></td>

                    <td class="active">Appid</td>
                    <td>{$wxopen['authorizer_appid']}</td>

                    <td class="active">原始ID</td>
                    <td>{$wxopen['gh_id']}</td>
                </tr>
                <tr>
                    <td class="active">公众号认证信息</td>
                    <td>{:getwxlx($wxopen['verify_type_info'])}{:getwxrz($wxopen['service_type_info'])}</td>
                    <td class="active">认证主体</td>
                    <td>{$wxopen['principal_name']}</td>
                    <td class="active">授权时间</td>
                    <td>{:date('Y-m-d H:i:s',$wxopen['addtime'])}</td>

                </tr>
                <tr>
                    <td class="active">重新授权</td>
                    <td colspan="6"><a href="{:url('mach/open_auth')}?id={$user['id']}"><img style="width:100%;height:100%;" src="https://open.weixin.qq.com/zh_CN/htmledition/res/assets/res-design-download/icon_button3_1.png"/></a>

                    </td>
                </tr>

                </tbody>
            </table>
            <div class="alert alert-danger">授权公众号前请确认您的公众号为认证服务号，且已开通模版消息功能，授权完成后不再继承上级公众号</div>
            {/if}
            </div>
        </div>
        {include file='public/footer'/}
    </div>
</section>
<!-- 添加类别模态框（Modal） -->

<!--修改模态框-->




</body>
</html>
